package net.gz01.wallet.common;

/**
 * 表格分页对象 by 2015年8月4日
 */
public class ZOPage {

	/**
	 * 当前页数
	 */
	private Integer pageNum = 1;

	/**
	 * 每页显示条数
	 */
	private Integer numPerPage = 20;

	/**
	 * 总条数
	 */
	private Integer total = 0;

	private Integer pageNumShown = 10;

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		if (pageNum == null) {
			pageNum = 1;
		}
		this.pageNum = pageNum;
	}

	public Integer getNumPerPage() {
		return numPerPage;
	}

	public void setNumPerPage(Integer numPerPage) {
		if (numPerPage == null) {
			numPerPage = 20;
		}
		this.numPerPage = numPerPage;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Integer getPageNumShown() {
		return pageNumShown;
	}

	public void setPageNumShown(Integer pageNumShown) {
		this.pageNumShown = pageNumShown;
	}

}
